package servise;

import java.util.Map;

import com.sun.xml.internal.ws.util.StringUtils;


public class UserService {
	private String password;
	private Map map;

	public UserService(String password,Map map) {
		super();
		this.password = password;
		this.map = map;
	}
	public int pat(){
		int result=0;
		if(map==null|map.isEmpty()){
			return result;
		}else {
			Object obj = map.get("result");
			if(password.equals(obj.toString())){
				return 1;
			}else{
				return 2;
			}
		}
	}

}
